package com.it.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author : code1997
 * @date : 2021/9/9 22:46
 */
@Data
@TableName("t_comment")
public class BlogCommentEntity {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String nickname;
    private String email;
    private String content;
    private String avatar;

    private Date createTime;


    private Long blogId;

    @TableField(exist = false)
    private BlogEntity blog;

    @TableField(exist = false)
    private List<BlogCommentEntity> replyBlogCommentEntities = new ArrayList<>();

    private Long parentCommentId;

    @TableField(exist = false)
    private BlogCommentEntity parentBlogCommentEntity;

    private Boolean adminComment;


}
